<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:spring="http://www.w3.org/1999/xhtml"
      xmlns:static-path-patttern="http://www.w3.org/1999/xhtml">
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Dashboard Template for Bootstrap</title>
    <!-- Bootstrap core CSS -->
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link th:href="@{/css/dashboard.css}" rel="stylesheet">
    <style type="text/css">
        /* Chart.js */

        @-webkit-keyframes chartjs-render-animation {
            from {
                opacity: 0.99
            }
            to {
                opacity: 1
            }
        }

        @keyframes chartjs-render-animation {
            from {
                opacity: 0.99
            }
            to {
                opacity: 1
            }
        }

        .chartjs-render-monitor {
            -webkit-animation: chartjs-render-animation 0.001s;
            animation: chartjs-render-animation 0.001s;
        }
        .container-fluid{
            width: 1000px;

            align:center;
        }
    </style>
</head>
<body>

<div th:replace="~{commons/commons::topbar}"></div>

<div class="container-fluid">
    
    <div class="row" >
        <div th:replace="~{commons/commons::sidebar(active='list.html')}"></div>

        <main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4">
            <p th:text-indent: 2em; id="p1" style="font-size: 15px;"></p>

            <p th:text-indent: 2em; id="p2" style="font-size: 14px;"></p>
            <table class="table table-striped table-sm" >
                <tbody>
                <tr th:each="reqs:${requires}">
                    <td th:text="${reqs.getRno()}"></td>
                    <td th:text="${reqs.getReq()}"></td>

                </tr>
                </tbody>
            </table>
            <p th:text-indent: 2em; id="p3" style="font-size: 14px;"></p>
            <p th:text-indent: 2em; id="p4" style="font-size: 14px;"></p>
            <p th:text-indent: 2em; id="p5" style="font-size: 14px;"></p>
            <p th:text-indent: 2em; id="p6" style="font-size: 14px;"></p>
            <p th:text-indent: 2em; id="p7" style="font-size: 14px;"></p>

            <img src="../img/1.jpg">
            <table class="table table-bordered table-striped" id="example">
                <thead class="thead-light">
                <tr>
                    <th scope="col">类别</th>
                    <th scope="col">总学分</th>
                    <th scope="col">总学时</th>
                    <th scope="col">学分比例</th>
                    <th scope="col">理教学分</th>
                    <th scope="col">单列实践环节</th>
                    <th scope="col">单列实验课</th>
                    <th scope="col">第二课堂</th>
                </tr>
                </thead>
                <tbody>
                <tr th:each="all:${allsortss}">
                    <td th:text="${all.getAsort()}"></td>
                    <td th:text="${all.getAcredit()}"></td>
                    <td th:text="${all.getAperiod()}"></td>
                    <td th:text="${all.getAcredit_bi()}"></td>
                    <td th:text="${all.getAtheory()}"></td>
                    <td th:text="${all.getApractice()}"></td>
                    <td th:text="${all.getAexp()}"></td>
                    <td th:text="${all.getAclass2()}"></td>
                </tr>
                </tbody>
            </table>
            <p th:text-indent: 2em; id="p8" style="font-size: 14px;"></p>
            <table class="table table-bordered table-striped" >
                <thead class="thead-light">
                <tr>
                    <th scope="col">类别</th>
                    <th scope="col">序号</th>
                    <th scope="col">课程编号</th>
                    <th scope="col">课程名称</th>
                    <th scope="col">学分</th>
                    <th scope="col">核心课程</th>
                    <th scope="col">院考学期</th>
                    <th scope="col">总计</th>
                    <th scope="col">理教</th>
                    <th scope="col">实验</th>
                    <th scope="col">课外</th>
                    <th scope="col">上机</th>
                    <th scope="col">上课学期</th>
                </tr>
                </thead>
                <tbody>
                <tr th:each="cou:${course1s}">
                    <td th:text="${cou.getCsort()}"></td>
                    <td th:text="${cou.getCno()}"></td>
                    <td th:text="${cou.getCnumber()}"></td>
                    <td th:text="${cou.getCname()}"></td>
                    <td th:text="${cou.getCredit()}"></td>
                    <td th:text="${cou.getCentral()}"></td>
                    <td th:text="${cou.getCtime1()}"></td>
                    <td th:text="${cou.getCtotal()}"></td>
                    <td th:text="${cou.getCtheory()}"></td>
                    <td th:text="${cou.getCexp()}"></td>
                    <td th:text="${cou.getCextra()}"></td>
                    <td th:text="${cou.getComputer()}"></td>
                    <td th:text="${cou.getCtime2()}"></td>
                </tr>
                </tbody>
            </table>
            <p th:text-indent: 2em; id="p9" style="font-size: 14px;"></p>


            <table class="table table-striped table-sm">
                <thead>
                <tr>
                    <th>类别</th>
                    <th>序号</th>
                    <th>课程编号</th>
                    <th>课程名称</th>
                    <th>学分</th>
                    <th>周数</th>
                    <th>第一周</th>
                    <th>第二周</th>
                    <th>第三周</th>
                    <th>第四周</th>
                    <th>第五周</th>
                    <th>第六周</th>
                    <th>第七周</th>
                    <th>第八周</th>
                </tr>
                </thead>
                <tbody>
                <tr th:each="cou2:${course2s}">
                    <td th:text="${cou2.getCsort()}"></td>
                    <td th:text="${cou2.getCno()}"></td>
                    <td th:text="${cou2.getCnumber()}"></td>
                    <td th:text="${cou2.getCname()}"></td>
                    <td th:text="${cou2.getCredit()}"></td>
                    <td th:text="${cou2.getCweek()}"></td>
                    <td th:text="${cou2.getCtime_1()}"></td>
                    <td th:text="${cou2.getCtime_2()}"></td>
                    <td th:text="${cou2.getCtime_3()}"></td>
                    <td th:text="${cou2.getCtime_4()}"></td>
                    <td th:text="${cou2.getCtime_5()}"></td>
                    <td th:text="${cou2.getCtime_6()}"></td>
                    <td th:text="${cou2.getCtime_7()}"></td>
                    <td th:text="${cou2.getCtime_8()}"></td>

                </tr>
                </tbody>
            </table>
            <input th:type="hidden" id="t" th:value="${pro.getPno()}" type="text"  class="form-control" >
            <input th:type="hidden" id="t0" th:value="${pro.getPtitle()}" type="text"  class="form-control" >
            <input th:type="hidden"   id="t1" th:value="${pro.getPh1()}" type="text" class="form-control" >
            <input  th:type="hidden"  id="t2" th:value="${pro.getPh2()}" type="text" class="form-control" >
            <input  th:type="hidden"   id="t3" th:value="${pro.getPh3()}" type="text" class="form-control" >
            <input  th:type="hidden"  id="t4"  th:value="${pro.getPh4()}" type="text" class="form-control" >
            <input  th:type="hidden"   id="t5"  th:value="${pro.getPh5()}" type="text" class="form-control" >
            <input  th:type="hidden"    id="t6" th:value="${pro.getPh6()}" type="text" class="form-control" >
            <input  th:type="hidden"   id="t7"  th:value="${pro.getPh7()}" type="text" class="form-control" >
            <input  th:type="hidden"   id="t8"  th:value="${pro.getPh8()}" type="text" class="form-control" >
            <script>
                var
                   str= document.getElementById("t").value,
                str1=document.getElementById("t1").value,
                str2=document.getElementById("t3").value+document.getElementById("t4").value,
                str3=document.getElementById("t5").value+document.getElementById("t6").value,
                str4=document.getElementById("t7").value+document.getElementById("t8").value;
                document.getElementById("p1").innerHTML=document.getElementById("t0").value;
                document.getElementById("p2").innerHTML=document.getElementById("t1").value;
                document.getElementById("p3").innerHTML=document.getElementById("t2").value;
                document.getElementById("p4").innerHTML=document.getElementById("t3").value;
                document.getElementById("p5").innerHTML=document.getElementById("t4").value;
                document.getElementById("p6").innerHTML=document.getElementById("t5").value;
                document.getElementById("p7").innerHTML=document.getElementById("t6").value;
                document.getElementById("p8").innerHTML=document.getElementById("t7").value;
                document.getElementById("p9").innerHTML=document.getElementById("t8").value;

/*

             var str11=str1 .split("。");
             document.getElementById("h1").innerHTML=str11[0];
                document.getElementById("h2").innerHTML=str11[1];
                document.getElementById("h3").innerHTML=str11[2];
                document.getElementById("h4").innerHTML=str11[3];
                document.getElementById("h5").innerHTML=str11[4];
                document.getElementById("h6").innerHTML=str11[5];
                document.getElementById("h7").innerHTML=str11[6];
                document.getElementById("h8").innerHTML=str11[7];
                document.getElementById("h9").innerHTML=str11[8];
                document.getElementById("h10").innerHTML=str11[9];
                document.getElementById("h11").innerHTML=str11[10];
                document.getElementById("h12").innerHTML=str11[11];
                document.getElementById("h13").innerHTML=str11[12];
                document.getElementById("h14").innerHTML=str11[13];
                document.getElementById("h15").innerHTML=str11[14];
                document.getElementById("h16").innerHTML=str11[15];
                document.getElementById("h17").innerHTML=str11[16];
                document.getElementById("h18").innerHTML=str11[17];
                document.getElementById("h19").innerHTML=str11[18];

*/

            </script>

        </main>

    </div>
</div>

<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script type="text/javascript" src="asserts/js/jquery-3.2.1.slim.min.js"></script>
<script type="text/javascript" src="asserts/js/popper.min.js"></script>
<script type="text/javascript" src="asserts/js/bootstrap.min.js"></script>

<!-- Icons -->
<script type="text/javascript" src="asserts/js/feather.min.js"></script>
<script>
    feather.replace()
</script>

<!-- Graphs -->
<script type="text/javascript" src="asserts/js/Chart.min.js"></script>
<script>
    var ctx = document.getElementById("myChart");
    var myChart = new Chart(ctx, {
        type: 'line',
        data: {
            labels: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
            datasets: [{
                data: [15339, 21345, 18483, 24003, 23489, 24092, 12034],
                lineTension: 0,
                backgroundColor: 'transparent',
                borderColor: '#007bff',
                borderWidth: 4,
                pointBackgroundColor: '#007bff'
            }]
        },
        options: {
            scales: {
                yAxes: [{
                    ticks: {
                        beginAtZero: false
                    }
                }]
            },
            legend: {
                display: false,
            }
        }
    });
</script>
</body>
</html>